package com.sxkf.template.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.sxkf.template.entity.Post;
import com.sxkf.template.entity.PostCollect;
import com.baomidou.mybatisplus.extension.service.IService;
import com.sxkf.template.entity.PostLike;

/**
 * <p>
 * 帖子收藏 服务类
 * </p>
 *
 * @author 杨玉龙
 * @since 2024-12-17 15:24:12
 */
public interface PostCollectService extends IService<PostCollect> {

    Boolean add(PostCollect postCollect);

    Boolean isAdd(String userId, String postId);

    Page<Post> pageByType(Page<Post> page, String userId, String type);
}
